/**
 * Copyright (c) 1987-2010 Fujian Fujitsu Communication Software Co.,
 * Ltd. All Rights Reserved.
 * This software is the confidential and proprietary information of
 * Fujian Fujitsu Communication Software Co., Ltd.
 * ("Confidential Information"). You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with FFCS.
 * FFCS MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
 * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. FFCS SHALL NOT BE LIABLE FOR
 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */
package aip.core.model.dictionary;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 数据字典.
 * @author RUN
 * @version Revision 1.0.0
 */
@Entity
@Table(name = "BASE_DICT")
public class Dictionary implements Serializable
{
    private static final long serialVersionUID = 1451221368336237996L;
    /** ID */
    @Id
    @Column(name = "ID_")
    private String id;
    /** 显示值 */
    @Column(name = "LABEL_")
    private String label;
    /** 值 */
    @Column(name = "VALUE_")
    private String value;
    /** 排序 */
    @Column(name = "ORDER_")
    private Integer order;
    /** 是否在通用配置里显示 */
    @Column(name = "SHOW_COMM_")
    private boolean showInCommon;

    public Dictionary()
    {
        super();
    }

    public Dictionary(String label, String value)
    {
        super();
        this.label = label;
        this.value = value;
    }

    /**
     * @return id属性
     */
    public String getId()
    {
        return id;
    }

    /**
     * @param id
     *        设置id属性
     */
    public void setId(String id)
    {
        this.id = id;
    }

    /**
     * @return label属性
     */
    public String getLabel()
    {
        return label;
    }

    /**
     * @param label
     *        设置label属性
     */
    public void setLabel(String label)
    {
        this.label = label;
    }

    /**
     * @return value属性
     */
    public String getValue()
    {
        return value;
    }

    /**
     * @param value
     *        设置value属性
     */
    public void setValue(String value)
    {
        this.value = value;
    }

    /**
     * @return order属性
     */
    public Integer getOrder()
    {
        return order;
    }

    /**
     * @param order
     *        设置order属性
     */
    public void setOrder(Integer order)
    {
        this.order = order;
    }

    /**
     * @return showInCommon属性
     */
    public boolean isShowInCommon()
    {
        return showInCommon;
    }

    /**
     * @param showInCommon
     *        设置showInCommon属性
     */
    public void setShowInCommon(boolean showInCommon)
    {
        this.showInCommon = showInCommon;
    }

}
